package cn.shuangliang.contract.model;

import java.util.Date;

public class Product {
    private Long id;

    private String pname;

    private String sidu;

    private String style;

    private Date addtime;

    private Float price;

    private String desc;

    private long parent;//上级
    public Product(){}

    public Product(String pname, String sidu, String style, Float price, String desc) {
        this.pname = pname;
        this.sidu = sidu;
        this.style = style;
        this.price = price;
        this.desc = desc;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname == null ? null : pname.trim();
    }

    public long getParent() {
        return parent;
    }

    public void setParent(long parent) {
        this.parent = parent;
    }

    public String getSidu() {
        return sidu;
    }

    public void setSidu(String sidu) {
        this.sidu = sidu == null ? null : sidu.trim();
    }

    public String getStyle() {
        return style;
    }

    public void setStyle(String 规格) {
        this.style = 规格 == null ? null : 规格.trim();
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc == null ? null : desc.trim();
    }
}